﻿<%@ Page Title="View Properties" Language="C#" MasterPageFile="~/CDBPage.master" AutoEventWireup="true"
    CodeFile="viewProperties.aspx.cs" Inherits="viewProperties" %>

<%@ Register Src="controls/userNavigation.ascx" TagName="userNavigation" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <section class="content">
    <div class="inner-billboard">
        <h3>View Properties</h3>
        <blockquote></blockquote>
    </div>
        <div style="min-height: 300px;">
                    <p></p>
                    <uc1:userNavigation ID="userNavigation1" runat="server" />
                    <br /><br /><br />
                    <div style="float: left; width:100%;">
                        <table width="100%">
                            <tr>
                                <td id="tdMessage" runat="server" style="color:Red;"></td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:GridView ID="grdProperties" runat="server" AutoGenerateColumns="False" 
                                        CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
                                        <AlternatingRowStyle BackColor="White" />
                                        <Columns>
                                            <asp:TemplateField HeaderText="View" HeaderStyle-HorizontalAlign="Left">
                                                <ItemTemplate>
                                                    <a href='PropertyDetail.aspx?Id=<%#Eval("Id") %>' >View</a>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="Name" HeaderText="Name" ReadOnly="True" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemStyle HorizontalAlign="Left" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="AreaSqMt" HeaderText="Area in Sq.Mt" ReadOnly="True" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemStyle HorizontalAlign="Left" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="YearBuilt" HeaderText="Year Built" ReadOnly="True" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemStyle HorizontalAlign="Left" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Address1" HeaderText="Address 1" ReadOnly="True" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemStyle HorizontalAlign="Left" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Address2" HeaderText="Address 2" ReadOnly="True" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemStyle HorizontalAlign="Left" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="City" HeaderText="City" ReadOnly="True" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemStyle HorizontalAlign="Left" />
                                            </asp:BoundField>
                                            <%--<asp:BoundField DataField="Price" HeaderText="Price" ReadOnly="True" DataFormatString="{0:C2}" >
                                                    <ItemStyle HorizontalAlign="Left" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Luxury" HeaderText="Luxury" ReadOnly="True" >
                                                    <ItemStyle HorizontalAlign="Left" />
                                            </asp:BoundField>--%>
                                        </Columns>
                                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                        <SortedAscendingCellStyle BackColor="#FDF5AC" />
                                        <SortedAscendingHeaderStyle BackColor="#4D0000" />
                                        <SortedDescendingCellStyle BackColor="#FCF6C0" />
                                        <SortedDescendingHeaderStyle BackColor="#820000" />
                                    </asp:GridView>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="clear"></div>
            </div>
    
</section>
</asp:Content>
